<template>
	<view>
		<view slot="top">
			<u-navbar :autoBack="true" title="商品评价" :placeholder="true" titleStyle="color:#333"
				bgColor="#ffffff"></u-navbar>
		</view>
		<view class="item_box">
			<view class="item">
				<view class="user_comments">
					<!-- 用户信息 -->
					<view class="user_info">
						<view class="left">
							<view class="avatar">
								<image src="/static/avatar.jpg" mode=""></image>
							</view>
							<view class="info">
								<view class="name">
									用户1
								</view>
								<view class="time">
									2023-06-21
								</view>
							</view>
						</view>
						<view class="right">
							<span class="icon" v-for="(item,index) in pjList" :key="index"></span>
						</view>
					</view>
					<!-- 用户评论 -->
					<view class="comments">
						<view class="comments_ct">
							好价格,包装完整,分量十足,口感极佳,非常新鲜,大小均匀
						</view>
						<view class="comments_pic">
							<image src="/static/ct.png" mode="widthFix"></image>
						</view>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				pjList: [1, 2, 3, 4, 5],
			};
		}
	}
</script>

<style lang="scss" scoped>
	.item {
		width: 750rpx;
		box-sizing: border-box;
		padding: 30rpx 20rpx;
		margin-top: 20rpx;
		background-color: #ffffff;
		font-family: SourceHanSansCN-Regular;
	}

	.user_comments {
		padding: 10px 0;
		border-bottom: 1px solid #E6E6E6;

		.user_comments_num {
			display: flex;
			justify-content: space-between;
			margin-bottom: 10rpx;

			.comments_title {
				font-weight: 400;
				color: #333333;
				font-size: 30rpx;
			}

			.comments_nums {
				font-weight: 400;
				color: #999999;
				font-size: 24rpx;
				display: flex;
			}

			.comments_nums .icon {
				width: 24rpx;
				height: 24rpx;
				background-image: url('/static/img/箭头.png');
				background-size: cover;
				background-repeat: no-repeat;
				margin-left: 8rpx;
			}
		}

		//头像
		.user_info {
			display: flex;
			justify-content: space-between;
			align-items: center;
			margin-top: 20rpx;

			.left {
				display: flex;
			}

			.avatar {
				width: 70rpx;
				height: 70rpx;
				border-radius: 50%;
				overflow: hidden;
			}

			.avatar image {
				width: 70rpx;
				height: 70rpx;
			}

			.info {
				margin: 0 10rpx;

				.name {
					font-size: 24rpx;
					font-weight: 400;
					color: #333333;
				}

				.time {
					font-size: 20rpx;
					font-weight: 400;
					color: #999999;
					margin-top: 10rpx;
				}
			}

			.right {
				.icon {
					display: inline-block;
					width: 14rpx;
					height: 14rpx;
					background-image: url('/static/collect.png');
					background-size: cover;
					background-repeat: no-repeat;
					margin: 0 8rpx;
				}
			}
		}

		.comments {
			margin-top: 10rpx;

			.comments_ct {
				font-size: 34rpx;
				line-height: 68rpx;
				font-weight: 400;
				color: #333333;
			}

			.comments_pic {
				margin-top: 10rpx;
			}

			.comments_pic image {
				width: 200rpx;
				height: 200rpx;
				border-radius: 20rpx;
				overflow: hidden;
			}
		}
	}
</style>